#switch (systemreportfieldinfo.field_type)
#case ("d")
<input type="hidden" value="2" id="queryNum" />
#modeltag({tagcode:"jxbrms_systemdict_list",dicttypeId:"QUERY_TERM",where:"dict_code = '>='",order:"level_code"})
#include("/common/layout/tag/select_layout.html",selectid="fieldTerm",selectdata=systemdict_list,dataid="dict_code",dataview="dict_name",selectext="style='display: none'")
<input jtip='#(systemreportfieldinfo.field_view) 必须是数字" />' jtype="d" type="text" value="" style="width:200px" qtag="termValue"/>-
#modeltag({tagcode:"jxbrms_systemdict_list",dicttypeId:"QUERY_TERM",where:"dict_code = '<='",order:"level_code"})
#include("/common/layout/tag/select_layout.html",selectid="fieldTerm",selectdata=systemdict_list,dataid="dict_code",dataview="dict_name",selectext="style='display: none'")
<input jtip='#(systemreportfieldinfo.field_view) 必须是数字" />' jtype="d" type="text" value="" style="width:200px" qtag="termValue2"/>
#case ("str")
<input type="hidden" value="1" id="queryNum" />
#modeltag({tagcode:"jxbrms_systemdict_list",dicttypeId:"QUERY_TERM",where:"dict_code = 'bh'",order:"level_code"})
#include("/common/layout/tag/select_layout.html",selectid="fieldTerm",selectdata=systemdict_list,dataid="dict_code",dataview="dict_name",selectext="style='display: none'")
<input jtype="s" type="text" value="" style="width:200px" qtag="termValue" class="form-control"/>
#case ("ldate","sdate")
#set(termArray = ((systemreportfieldinfo.fieldExt.term) ?? ">=;<=").split(";"))
#set(pvArray = systemreportfieldinfo.fieldExt.plusValue.split(";"))
#set(ptArray = ((systemreportfieldinfo.fieldExt.plusType) ?? ">=;<=").split(";"))
<input type="hidden" value='#(termArray.length)' id="queryNum" />
#modeltag({tagcode:"jxbrms_systemdict_list",dicttypeId:"QUERY_TERM",where:"dict_code = '"+termArray[0]+"'",order:"level_code"})
#include("/common/layout/tag/select_layout.html",selectid="fieldTerm",selectdata=systemdict_list,dataid="dict_code",dataview="dict_name",selectext="style='display: none'")
#if ((systemreportfieldinfo.fieldExt.plusValue ?? "") == "")
<input jtype="s" class="form-control" type="text" qtag="termView" value="" readonly style="width:120px"
             onclick="WdatePicker({dateFmt:'#(systemreportfieldinfo.getFieldExt().getTermFmt())',vel:'termValue_#(systemreportfieldinfo.id)',realDateFmt:'#(systemreportfieldinfo.getFieldExt().getRealFmt())'})"  />
      <input type="hidden" value="" qtag="termValue" id="termValue_#(systemreportfieldinfo.id)"/>
#else
<input jtype="s" class="form-control" type="text" qtag="termView" value="<@jx_datetime plusvalue='#(pvArray[0])' plustype='#(ptArray[0])' outfmt='#(systemreportfieldinfo.getFieldExt().getTermFmt())'/>" readonly style="width:120px"
             onclick="WdatePicker({dateFmt:'#(systemreportfieldinfo.getFieldExt().getTermFmt())',vel:'termValue_#(systemreportfieldinfo.id)',realDateFmt:'#(systemreportfieldinfo.getFieldExt().getRealFmt())'})"  />
      <input type="hidden" value='#jx_datetime({plusvalue:pvArray[0],plustype:ptArray[0],outfmt:systemreportfieldinfo.getFieldExt().getRealFmt()})' qtag="termValue" id="termValue_#(systemreportfieldinfo.id)"/>
#end
#if (termArray.length == 2)
-
#modeltag({tagcode:"jxbrms_systemdict_list",dicttypeId:"QUERY_TERM",where:"dict_code = '" + termArray[1] + "'",order:"level_code"})
#include("/common/layout/tag/select_layout.html",selectid="fieldTerm2",selectdata=systemdict_list,dataid="dict_code",dataview="dict_name",selectext="style='display: none'")
#if ((systemreportfieldinfo.fieldExt.plusValue ?? "") == "")
<input jtype="s" class="form-control" type="text" qtag="termView2" value="" readonly style="width:120px"
             onclick="WdatePicker({dateFmt:'#(systemreportfieldinfo.getFieldExt().getTermFmt())',vel:'termValue2_#(systemreportfieldinfo.id)',realDateFmt:'#(systemreportfieldinfo.getFieldExt().getRealFmt())'})"  />
<input type="hidden" value="" qtag="termValue2" id="termValue2_#(systemreportfieldinfo.id)"/>   
#else
<input jtype="s" class="form-control" type="text" qtag="termView2" value="#jx_datetime({plusvalue:pvArray[1],plustype:ptArray[1],outfmt:systemreportfieldinfo.getFieldExt().getTermFmt()})" readonly style="width:120px"
             onclick="WdatePicker({dateFmt:'#(systemreportfieldinfo.getFieldExt().getTermFmt())',vel:'termValue2_#(systemreportfieldinfo.id)',realDateFmt:'#(systemreportfieldinfo.getFieldExt().getRealFmt())'})"  />
<input type="hidden" value="#jx_datetime({plusvalue:pvArray[1],plustype:ptArray[1],outfmt:systemreportfieldinfo.getFieldExt().getRealFmt()})" qtag="termValue2" id="termValue2_#(systemreportfieldinfo.id)"/>   
#end     
#end
#case ("dictselect")
<input type="hidden" value="1" id="queryNum" />
#modeltag({tagcode:"jxbrms_systemdict_list",dicttypeId:"QUERY_TERM",where:"dict_code = '='",order:"level_code"})
#include("/common/layout/tag/select_layout.html",selectid="fieldTerm",selectdata=systemdict_list,dataid="dict_code",dataview="dict_name",selectext="style='display: none'")
#modeltag({tagcode:"jxbrms_systemdict_list",dicttypeId:systemreportfieldinfo.getFieldExt().getSelectCode(),useFlag:"<>0",order:"level_code"})
#include("/common/layout/tag/select_layout.html",selectdata=systemdict_list,dataid=systemreportfieldinfo.getFieldExt().getRealField() ,dataview=systemreportfieldinfo.getFieldExt().getViewField(),selectext="multiple data-placeholder='请选择'",inputid="termValue",inputview="termView",inputidext="qtag='termValue'",inputviewext="qtag='termView'")

#case ("tagselect","sqlselect")
<input type="hidden" value="1" id="queryNum" />
#modeltag({tagcode:"jxbrms_systemdict_list",dicttypeId:"QUERY_TERM",where:"dict_code = '='",order:"level_code"})
#include("/common/layout/tag/select_layout.html",selectid="fieldTerm",selectdata=systemdict_list,dataid="dict_code",dataview="dict_name",selectext="style='display: none'")
#if ((systemreportfieldinfo.fieldExt.uidTerm ?? "")== "")
#jx_list({tagcode:systemreportfieldinfo.getFieldExt().getSelectCode(),ps:"0"})
#else
#jx_list({tagcode:systemreportfieldinfo.getFieldExt().getSelectCode(),ps:"0",where:systemreportfieldinfo.fieldExt.uidTerm,params:user.userId})
#end
#include("/common/layout/tag/select_layout.html",selectdata=prs,dataid=systemreportfieldinfo.getFieldExt().getRealField() ,dataview=systemreportfieldinfo.getFieldExt().getViewField(),selectext="multiple data-placeholder='请选择'",inputid="termValue",inputview="termView",inputidext="qtag='termValue'",inputviewext="qtag='termView'")
#end